NewPtrSys
NewPtrSys
Allocate a nonrelocatable block of memory in the system heap
Size theSize ; desired allocation, in bytes (a 32-bit value) returns address of allocated block; NIL if error
NewPtr, except that it allocates the memory in the system heap. theSize specifies how much memory you wish to allocate.
Returns: a Ptr; the address of the allocated space or NIL (0) if there wasn't room in the heap zone for the allocation. The MemError function noErr (0) No error
memFullErr (-108) No room in heap
Notes: See NewPtr for more information.